<div class="layui-fluid layui-anim febs-anim" id="siteOilInfo-add" lay-title="壳牌油站其它信息">
    <div class="layui-row layui-col-space8 febs-container">
    	<form class="layui-form" action="" lay-filter="febs-form-elements" id="shelloilInfoAdd">
    	<div class="layui-form-item febs-hide">
			<label class="layui-form-label febs-form-item-require">油站id：</label>
			<div class="layui-input-block">
			     <input type="text" name="siteId" data-th-value="${siteid}">
			 </div>
		</div>
		<div class="layui-form-item febs-hide">
			<label class="layui-form-label febs-form-item-require">分类id：</label>
			<div class="layui-input-block">
			     <input type="text" name="did" data-th-value="${did}">
			 </div>
		</div>
    	<div class="layui-form-item">
        	<div class="layui-card">
                <div class="layui-row">
                         <div class="layui-form-item">
                         	 <div class="layui-inline">
                                 <label class="layui-form-label layui-form-label-sm">开始日期</label>
                                 <div class="layui-input-inline">
                                      <input type="text" name="startDate" id="startDate" class="layui-input">
                                 </div>
                              </div>
                              <div class="layui-inline">
                                 <label class="layui-form-label layui-form-label-sm">92#</label>
                                 <div class="layui-input-inline">
                                      <input type="text" name="oil92" autocomplete="off" class="layui-input">
                                 </div>
                              </div>
                              <div class="layui-inline">
                                 <label class="layui-form-label layui-form-label-sm">95#</label>
                                 <div class="layui-input-inline">
                                      <input type="text" name="oil95" autocomplete="off" class="layui-input">
                                 </div>
                              </div>
                               <div class="layui-inline">
                                 <label class="layui-form-label layui-form-label-sm">0#</label>
                                 <div class="layui-input-inline">
                                      <input type="text" name="oil0" autocomplete="off" class="layui-input">
                                 </div>
                              </div>
                              <div class="layui-form-item febs-hide">
						            <button class="layui-btn" lay-submit="" lay-filter="oilInfo-add-form-submit" id="oilInfosubmit"></button>
						            <button type="reset" class="layui-btn" id="reset"></button>
						      </div>
                         </div>
                </div>
            </div>
         </div>
       </form> 
       
     </div>
</div>
<script>
    layui.use(['febs', 'laydate', 'form'], function () {
        var $ = layui.$,
            febs = layui.febs,
            element = layui.element,
            layer = layui.layer,
            table = layui.table,
            $view = $('#siteOilInfo-add'),
            laydate = layui.laydate,
            siteid =[[${siteid}]],
            did ='[[${did}]]',
            form = layui.form;

        form.render();
        
        
        laydate.render({
            elem: '#startDate',
            range: false,
            trigger: 'click'
        });

        form.on('submit(oilInfo-add-form-submit)', function (data) {
        	alert("111");
            febs.post(ctx + 'shelloil', data.field, function () {
            	layer.closeAll();
            	febs.alert.success('新增成功');
            	parent.location.reload();
            });
            return false;
        });
    });
</script>